Ext.namespace("Plan.Main");

Plan.Main.tabIndex = {
	"planing" : 0,
	"audit": 1,
	"execute" : 2
};

Plan.Main.Panel = function(){
	var opentab = Utils.getParameter('opentab');
	if (!opentab) opentab = "planing";
	
	this.auditList;
	this.planTyeList;
	this.tabPanel = new Ext.TabPanel({
		region:'center',
		activeTab: Plan.Main.tabIndex[opentab]
	});
	if(!Plan.Prepare.panel.instance)
		Plan.Prepare.panel.instance = new Plan.Prepare.panel();
	this.tabPanel.add(Plan.Prepare.panel.instance);
	if(!Plan.Audit.panel.instance)
		Plan.Audit.panel.instance = new Plan.Audit.panel();
	this.tabPanel.add(Plan.Audit.panel.instance);
	if(!Plan.Open.panel.instance)
		Plan.Open.panel.instance = new Plan.Open.panel();
	this.tabPanel.add(Plan.Open.panel.instance);
	Plan.Main.Panel.superclass.constructor.call(this,{
		layout:'border',
		items:[this.tabPanel],
		listeners:{
		}
	});
};
Ext.extend(Plan.Main.Panel,Ext.Viewport,{
	
});
Ext.onReady(function(){
	Ext.QuickTips.init();
    Ext.BLANK_IMAGE_URL = '../resources/images/default/s.gif';
	Plan.Main.Panel.instance= new Plan.Main.Panel();
});